﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;

namespace Defero.Model
{
    public class PersonConfiguration : EntityConfiguration<Person>
    {
        public PersonConfiguration() 
        {
            Property(e => e.Id).IsIdentity();
            Property(e => e.Birthday);
            Property(e => e.FirstName).HasDefaultMaxLength();
            Property(e => e.LastName).HasDefaultMaxLength();
            Property(e => e.Mobile).HasDefaultMaxLength();
            Property(e => e.Phone).HasDefaultMaxLength();
            Property(e => e.Email).HasDefaultMaxLength();
        }
    }
}
